@extends('layouts.fz')

@section('head')
    <h3 class="page-header">
    </h3>
    <ol class="breadcrumb">
        <li><a href="{{url('home')}}">主页</a></li>
        <li class="active">主页</li>
    </ol>
@endsection
@section('contain')
    @if (Auth::user()->department_type == '1')
        <div class="row">
            <a href="{{url('inputed_list')}}">
                <div class="col-md-3 col-sm-12 col-xs-12">
                    <div class="board">
                        <div class="panel panel-primary">
                            <div class="number">
                                <h3>
                                    <h3>44,023</h3>
                                    <small>申请领用记录</small>
                                </h3>
                            </div>
                            <div class="icon">
                                <i class="fa fa-eye fa-5x red"></i>
                            </div>

                        </div>
                    </div>
                </div>
            </a>

            <a href="{{url('order_list')}}">
                <div class="col-md-3 col-sm-12 col-xs-12">
                    <div class="board">
                        <div class="panel panel-primary">
                            <div class="number">
                                <h3>
                                    <h3>56,150</h3>
                                    <small>办公用品数</small>
                                </h3>
                            </div>
                            <div class="icon">
                                <i class="fa fa-shopping-cart fa-5x blue"></i>
                            </div>

                        </div>
                    </div>
                </div>
            </a>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        领用步骤
                    </div>
                    <div class="panel-body">


                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Line Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="line-chart" class="chart"></canvas>
                    </div>
                </div>
            </div>
            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Bar Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="bar-chart" class="chart"></canvas>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Radar Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="radar-chart" class="chart"></canvas>
                    </div>
                </div>
            </div>
            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Polar Area Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="polar-area-chart" class="chart"></canvas>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Pie & Doughnut Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="pie-chart" class="chart"></canvas>
                    </div>
                </div>
            </div>

            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Line Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="jumbotron-line-chart" class="chart no-padding"></canvas>
                    </div>
                </div>
            </div>
        </div>
    @endif
    @if (Auth::user()->department_type == '0')
        <div class="row">
            <a href="{{url('order_list')}}">
                <div class="col-md-3 col-sm-12 col-xs-12">
                    <div class="board">
                        <div class="panel panel-primary">
                            <div class="number">
                                <h3>
                                    <h3>44,023</h3>
                                    <small>待审核</small>
                                </h3>
                            </div>
                            <div class="icon">
                                <i class="fa fa-eye fa-5x red"></i>
                            </div>

                        </div>
                    </div>
                </div>
            </a>
            <a href="{{url('order_list_approval')}}">
                <div class="col-md-3 col-sm-12 col-xs-12">
                    <div class="board">
                        <div class="panel panel-primary">
                            <div class="number">
                                <h3>
                                    <h3>32,850</h3>
                                    <small>已审核</small>
                                </h3>
                            </div>
                            <div class="icon">
                                <i class="fa fa-comments fa-5x green"></i>

                            </div>

                        </div>
                    </div>
                </div>
            </a>
            <a href="{{url('product_list')}}">
                <div class="col-md-3 col-sm-12 col-xs-12">
                    <div class="board">
                        <div class="panel panel-primary">
                            <div class="number">
                                <h3>
                                    <h3>56,150</h3>
                                    <small>办公用品数</small>
                                </h3>
                            </div>
                            <div class="icon">
                                <i class="fa fa-shopping-cart fa-5x blue"></i>
                            </div>

                        </div>
                    </div>
                </div>
            </a>
            <a href="{{url('user_list')}}">
                <div class="col-md-3 col-sm-12 col-xs-12">
                    <div class="board">
                        <div class="panel panel-primary">
                            <div class="number">
                                <h3>
                                    <h3>89,645</h3>
                                    <small>用户数</small>
                                </h3>
                            </div>
                            <div class="icon">
                                <i class="fa fa-user fa-5x yellow"></i>
                            </div>

                        </div>
                    </div>
                </div>
            </a>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        快捷
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-md-3">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        审核快捷操作
                                    </div>
                                    <div class="panel-body">
                                        <a href="#" class="btn btn-success btn-lg">待审核</a>
                                        <a href="#" class="btn btn-primary btn-lg">已审核</a>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        部门快捷操作
                                    </div>
                                    <div class="panel-body">
                                        <a href="#" class="btn btn-success btn-lg">新增部门</a>
                                        <a href="#" class="btn btn-primary btn-lg">部门管理</a>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        账号快捷操作
                                    </div>
                                    <div class="panel-body">
                                        <a href="#" class="btn btn-success btn-lg">新增账号</a>
                                        <a href="#" class="btn btn-primary btn-lg">重置密码</a>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        办公用品快捷操作
                                    </div>
                                    <div class="panel-body">
                                        <a href="#" class="btn btn-success btn-lg">修改数目</a>
                                        <a href="#" class="btn btn-primary btn-lg">新增办公用品</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Line Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="line-chart" class="chart"></canvas>
                    </div>
                </div>
            </div>
            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Bar Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="bar-chart" class="chart"></canvas>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Radar Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="radar-chart" class="chart"></canvas>
                    </div>
                </div>
            </div>
            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Polar Area Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="polar-area-chart" class="chart"></canvas>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Pie & Doughnut Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="pie-chart" class="chart"></canvas>
                    </div>
                </div>
            </div>

            <div class="col-sm-6 col-xs-12">
                <div class="panel panel-default chartJs">
                    <div class="panel-heading">
                        <div class="card-title">
                            <div class="title">Line Chart</div>
                        </div>
                    </div>
                    <div class="panel-body">
                        <canvas id="jumbotron-line-chart" class="chart no-padding"></canvas>
                    </div>
                </div>
            </div>
        </div>
    @endif
@endsection
